/**
 * Created by Administrator on 2017/11/14.
 */

function check_411() {

   /* var data = '';
    $("input[name='last[]']").each(function (item) {
        if ($(this).val().length == 0){
            data = '请完整填写报表！';
            return false;
        }
    });
    $("input[name='now[]']").each(function (item) {
        if ($(this).val().length == 0){
            data = '请完整填写报表！';
            return false;
        }
    });
    if (data !=''){
        return data;
    }*/
    var last_a2 = $("#last_a2").val();
    var last_a3 = $("#last_a3").val();
    var last_a5 = $("#last_a5").val();
    var now_a2 = $("#now_a2").val();
    var now_a3 = $("#now_a3").val();
    var now_a5 = $("#now_a5").val();
    var last_a7 = parseInt($("#last_a7").val());
    var last_a8 = parseInt($("#last_a8").val());
    var last_a9 = parseInt($("#last_a9").val());
    var last_a10 = parseInt($("#last_a10").val());
    var last_a6 = parseInt($("#last_a6").val());
    var now_a7 = parseInt($("#now_a7").val());
    var now_a8 = parseInt($("#now_a8").val());
    var now_a9 = parseInt($("#now_a9").val());
    var now_a10 = parseInt($("#now_a10").val());
    var now_a6 = parseInt($("#now_a6").val());
    var last_a11 = parseInt($("#last_a11").val());
    var last_a12 = parseInt($("#last_a12").val());
    var last_a13 = parseInt($("#last_a13").val());
    var last_a14 = parseInt($("#last_a14").val());
    var last_a15 = parseInt($("#last_a15").val());
    var now_a11 = parseInt($("#now_a11").val());
    var now_a12 = parseInt($("#now_a12").val());
    var now_a13 = parseInt($("#now_a13").val());
    var now_a14 = parseInt($("#now_a14").val());
    var now_a15 = parseInt($("#now_a15").val());

    var last_a16 = parseInt($("#last_a16").val());
    var last_a17 = parseInt($("#last_a17").val());
    var last_a18 = parseInt($("#last_a18").val());
    var last_a20 = parseInt($("#last_a20").val());
    var now_a16 = parseInt($("#now_a16").val());
    var now_a17 = parseInt($("#now_a17").val());
    var now_a18 = parseInt($("#now_a18").val());
    var now_a20 = parseInt($("#now_a20").val());

    if (parseInt(last_a3) > parseInt(last_a2)){
        return '上年主营业务收入不能大于营业收入';
    }
    if (parseInt(last_a5) >= parseInt(last_a2)){
        return '上年业务利润不能大于等于营业收入';
    }
    if (parseInt(now_a3) > parseInt(now_a2)){
        return '本年主营业务收入不能大于营业收入';
    }
    if (parseInt(now_a5) >= parseInt(now_a2)){
        return '本年业务利润不能大于等于营业收入';
    }

    if ((last_a7+last_a8+last_a9+last_a10)>last_a6){
        return '上年货代业务票数不能小于子级分类之和';
    }
    if ((now_a7+now_a8+now_a9+now_a10)>now_a6){
        return '本年货代业务票数不能小于子级分类之和';
    }

    if ((last_a12+last_a13+last_a14+last_a15)>last_a11){
        return '上年货代业务量数不能小于子级分类之和';
    }
    if ((now_a12+now_a13+now_a14+now_a15)>now_a11){
        return '本年货代业务量数不能小于子级分类之和';
    }

    if ((last_a17+last_a18)>last_a16){
        return '上年大专以上学历不低于子级分类之和';
    }
    if ((now_a17+now_a18)>now_a16){
        return '本年大专以上学历不低于子级分类之和';
    }

    if (last_a20>last_a16){
        return '上年代码20应低于代码16'
    }
    if (now_a20>now_a16){
        return '本年代码20应低于代码16'
    }
    return '';
}